<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _init_nav(){
		require_once APPLICATION_PATH . '/models/db/db.php';
		//$db = db_db::db_con();
		$navCategories = db_db::categoryGroup(0);
		/*
    	$sql_statement = "Select cn.categoryid as categoryid,cn.name as name 
    					from product p join categorynames cn on p.categoryid = cn.categoryid
    					and cn.localeid = 1
    					where p.isaccessory = 0 group by cn.name;";
    	$result = $db->query($sql_statement);
    	    	//$this->_helper->viewRenderer->setNoRender();
		*/
    	$this->_bootstrap('layout');
    	//$this->layout()->result = $result;
    	$this->getResource('layout')->result2 = $navCategories;
    	//$this->getResource('layout')->result2 = "This is a test";
    	//$this->_helper->layout()->result = $result;
    	/*
    	foreach($result as $i){
    	 	echo '<a href="'.$this->view->url(array('controller'=>'category','action'=>$i['id'])).$i['name'].'">Test</a>'."&nbsp;";
    	 }
    	 */
	}

}

